<?php

class home extends a_front_controller {

    public function __construct() {
        parent::__construct();
         $this->run_auto_view = FALSE;
    }

    public function index() {

//        $obj = new service_l_email();
//        $email = new email_m_email(1);
//        $email->add_from("ronnie_nsu@mail.com", 'ron');
//        $email->add_to('ronnie_nsu@hotmail.com', "ronnie");
//        $email->add_to('ronnie_nsu@yahoo.com', "y ronnie");
//        $email->add_bcc("ronnie.nsu@gmaidl.com", 'geonnie');
//        $email->set_body($obj->render_template($obj->get_template_by_id(1)));
//        $email->set_subject("ore bapre");
//$this->add_global_msg("hello");
//$this->add_global_msg("ronnie");
//        $group = get_logged_user();
//        $obj = $group->stored;
//        debug_dump(get_object_vars($obj));
//
//        $obj =  service_l_acl::get_group_permissions(1);
//        $one = $obj[0];
//        debug_dump($one->convert_to_simple_data());
        //       $obj = new product_m_product();
//        $obj->query("SELECT * FROM PRODUCTS INNER JOIN product_dimensions pd on pd.product_id=products.id");
//        $u = new product_m_product();
//        $u->include_related("dimension_m_product")
//          ->where_related("image_m_product","product_id",'${u}.id')
//          ->order_by("weight", "DESC")
//          ->get();
//        echo get_instance()->db->last_query();
//        foreach ($u as $uu) {
//            echo $uu->dimension_m_product_weight . " -  " . $uu->part_num . "<br/>";
//        }
//        //  die();
        
        $this->view("home");
    }

    
    public function batch_assign() {
        
    }

}

?>